﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>华皓商业管理系统</title>
   <!--PrintScript-->
    <style type="text/css">
        body
        {
            margin: auto;
            width: 21cm;
            height:29.7cm;
            font-size: 12px;
        }
        #detail
        {
            float: left;
            width: 100%;
        }
        .detailClass
        {
            border-right: 1px solid;
            border-bottom: 1px solid;
            text-align: center;
            margin-bottom: 20px;
        }
        .detailClass td
        {
            border-left: 1px solid;
            border-top: 1px solid;
            padding-left: 10px;
            height: 27px;
            line-height: 27px;
        }
        .title1
        {
            text-align: center;
            font-size: 24px;
        }
    </style>
</head>
<body>
<div id="divAll">
    <div class="title1">
        [_FlagText]</div>
    <table width="100%" border="0">
        <tr>
            <td width="40%">
                供应商：[_CorSName]
            </td>
            <td width="30%">
                日期：[OrderDateTime]
            </td>
            <td width="30%">
                单号：[OrderNO]
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp; 仓库：[_StoreSName]
            </td>
            <td>
                地址：[Address]
            </td>
            <td>配送单号：[NoteNO]</td>
        </tr>
        <tr><td colspan="3">备注:[Note]</td></tr>
    </table>
    <br />
    <div id="detail">
        <script language="javascript" type="text/javascript">
            [objList]
        </script>
    </div>
    <script language="javascript" type="text/javascript">
        var str = "<table class='detailClass' width='100%' border='0'><tr><td>商品名称</td><td>规格</td><td>单位</td><td>数量</td></tr>";
        for (a = 0; a < objList.length; a++) {
            var b = objList[a];
            if (b["Name"] == undefined) {
                str += "<tr><td></td><td></td><td></td><td></td></tr>";
            }
            else {
                str += "<tr>";
                str += "<td>" + b["Name"] + "</td>";
                str += "<td>" + b["Standard"] + "</td>";
                str += "<td>" + b["_UnitName"] + "</td>";
                str += "<td>" + b["_TempQuantity"] + "</td>";
                str += "</tr>";
            }
        }
        str += "</td></tr></table>";
        detail.innerHTML = str;
    </script>
    <table width="100%" border="0">
        <tr>
            <td width="33%">
                审核人：[_UserSName]
            </td>
            <td width="33%">
                &nbsp;</td>
            <td width="34%">
                收货人：
            </td>
        </tr>
    </table>
</div>
</body>
</html>
